<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" /> 
    <title>Cpu挖矿Redis竟是内鬼 - 天地维杰网</title>
    <meta name="keywords" content="系统架构,shutdown,不与天斗,Domino,博客,程序员,架构师,笔记,技术,分享,java,Redis">
    
    <meta property="og:title" content="Cpu挖矿Redis竟是内鬼">
    <meta property="og:site_name" content="天地维杰网">
    <meta property="og:image" content="/img/author.jpg"> 
    <meta name="title" content="Cpu挖矿Redis竟是内鬼 - 天地维杰网" />
    <meta name="description" content="却说这一日，Redis正如往常一般工作，不久便收到了一条`SAVE`命令。
虽说这Redis常被用来当做缓存，数据只存在于内存中，却也能通过`SAVE`命令将内存中的数据保存到磁盘文件中以便持久化存储。
只见Redis刚打开文件，准备写入，不知何处突然冲出几个大汉将其擒住。
到底是怎么回事？Redis一脸懵。
这事还得要从一个月之前说起。" />
     
    <link rel="shortcut icon" href="http://www.shutdown.cn/img/favicon.ico" />
    <link rel="apple-touch-icon" href="http://www.shutdown.cn/img/apple-touch-icon.png" />
    <link rel="apple-touch-icon-precomposed" href="http://www.shutdown.cn/img/apple-touch-icon.png" />
    <link href="http://www.shutdown.cn/js/vendor/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />
    <link href="http://www.shutdown.cn/js/vendor/fancybox/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />
    <link href="http://www.shutdown.cn/css/main.css" rel="stylesheet" type="text/css" />
    <link href="http://www.shutdown.cn/css/syntax.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" id="hexo.configuration">
  var NexT = window.NexT || {};
  var CONFIG = {
    scheme: 'Pisces',
    sidebar: {"position":"left","display":"post"},
     fancybox: true, 
    motion: true
  };
</script>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-7826003325059020" crossorigin="anonymous"></script>
</head>
<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">
<div class="container one-collumn sidebar-position-left page-home  ">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"> <div class="site-meta  custom-logo ">

  <div class="custom-logo-site-title">
    <a href="http://www.shutdown.cn"  class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <span class="site-title">天地维杰网</span>
      <span class="logo-line-after"><i></i></span>
    </a>
  </div>
  <p class="site-subtitle">人如秋鸿来有信，事若春梦了无痕</p>
</div>

<div class="site-nav-toggle">
  <button>
    <span class="btn-bar"></span>
    <span class="btn-bar"></span>
    <span class="btn-bar"></span>
  </button>
</div>

<nav class="site-nav">
    <ul id="menu" class="menu">
      
      
        <li class="menu-item ">
          <a href="http://www.shutdown.cn/" rel="section">
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />首页
          </a>
        </li>
      
        <li class="menu-item ">
          <a href="http://www.shutdown.cn/categories/redis/" rel="section">
              <i class="menu-item-icon fa fa-fw fa-battery-full"></i> <br />Redis
          </a>
        </li>
      
        <li class="menu-item ">
          <a href="http://www.shutdown.cn/categories/java/" rel="section">
              <i class="menu-item-icon fa fa-fw fa-coffee"></i> <br />java
          </a>
        </li>
      
        <li class="menu-item ">
          <a href="http://www.shutdown.cn/categories/linux/" rel="section">
              <i class="menu-item-icon fa fa-fw fa-linux"></i> <br />linux
          </a>
        </li>
      
        <li class="menu-item ">
          <a href="http://www.shutdown.cn/categories/daily/" rel="section">
              <i class="menu-item-icon fa fa-fw fa-bug"></i> <br />日常问题
          </a>
        </li>
      
        <li class="menu-item ">
          <a href="http://www.shutdown.cn/categories/spring/" rel="section">
              <i class="menu-item-icon fa fa-fw fa-child"></i> <br />Spring和Springboot
          </a>
        </li>
      
        <li class="menu-item ">
          <a href="http://www.shutdown.cn/categories/mac/" rel="section">
              <i class="menu-item-icon fa fa-fw fa-fire"></i> <br />Mac相关
          </a>
        </li>
      
        <li class="menu-item ">
          <a href="http://www.shutdown.cn/categories/middleware/" rel="section">
              <i class="menu-item-icon fa fa-fw fa-gavel"></i> <br />中间件
          </a>
        </li>
      
        <li class="menu-item ">
          <a href="http://www.shutdown.cn/categories/jiagou/" rel="section">
              <i class="menu-item-icon fa fa-fw fa-rocket"></i> <br />架构
          </a>
        </li>
      
        <li class="menu-item ">
          <a href="http://www.shutdown.cn/categories/python/" rel="section">
              <i class="menu-item-icon fa fa-fw fa-ship"></i> <br />python
          </a>
        </li>
      
        <li class="menu-item ">
          <a href="http://www.shutdown.cn/categories/front/" rel="section">
              <i class="menu-item-icon fa fa-fw fa-bolt"></i> <br />前端
          </a>
        </li>
      
        <li class="menu-item ">
          <a href="http://www.shutdown.cn/categories/jvm/" rel="section">
              <i class="menu-item-icon fa fa-fw fa-balance-scale"></i> <br />jvm
          </a>
        </li>
      
        <li class="menu-item ">
          <a href="http://www.shutdown.cn/categories/c/" rel="section">
              <i class="menu-item-icon fa fa-fw fa-battery-empty"></i> <br />c语言
          </a>
        </li>
      
        <li class="menu-item ">
          <a href="http://www.shutdown.cn/categories/web3/" rel="section">
              <i class="menu-item-icon fa fa-fw fa-web3"></i> <br />web3
          </a>
        </li>
      
        <li class="menu-item ">
          <a href="http://www.shutdown.cn/post/" rel="section">
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />归档
          </a>
        </li>
      
        <li class="menu-item ">
          <a href="http://www.shutdown.cn/about/" rel="section">
              <i class="menu-item-icon fa fa-fw fa-user"></i> <br />关于
          </a>
        </li>
      
      <li class="menu-item menu-item-search">
        <a href="javascript:;" class="popup-trigger"> <i class="menu-item-icon fa fa-search fa-fw"></i> <br /> 搜索</a>
      </li>
    </ul>
    <div class="site-search">
      <div class="popup">
 <span class="search-icon fa fa-search"></span>
 <input type="text" id="local-search-input">
 <div id="local-search-result"></div>
 <span class="popup-btn-close">close</span>
</div>

    </div>
</nav>

 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            
<section id="posts" class="posts-expand">
  <article class="post post-type-normal " itemscope itemtype="http://schema.org/Article">
    <header class="post-header">
      <h1 class="post-title" itemprop="name headline">
        <a class="post-title-link" href="http://www.shutdown.cn/post/cpu-mining-redis-is-actually-an-inner-ghost/" itemprop="url">
        Cpu挖矿Redis竟是内鬼
        </a>
      </h1>
      <div class="post-meta">
      <span class="post-time">
<span class="post-meta-item-icon">
    <i class="fa fa-calendar-o"></i>
</span>
<span class="post-meta-item-text">时间：</span>
<time itemprop="dateCreated" datetime="2016-03-22T13:04:35+08:00" content="2022-01-20">
    2022-01-20
</time>
</span> 
      

  <span class="post-category" >
  &nbsp; | &nbsp;
  <span class="post-meta-item-icon">
    <i class="fa fa-folder-o"></i>
  </span>
  <span class="post-meta-item-text">分类：</span>
  
    <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
      <a href="http://www.shutdown.cn/categories/redis" itemprop="url" rel="index">
        <span itemprop="name">redis</span>
      </a>
      &nbsp; 
    </span>
  
    <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
      <a href="http://www.shutdown.cn/categories/linux" itemprop="url" rel="index">
        <span itemprop="name">linux</span>
      </a>
      &nbsp; 
    </span>
  
</span>


      
 <span>
&nbsp; | &nbsp;
<span class="post-meta-item-icon">
    <i class="fa fa-eye"></i>
</span>
<span class="post-meta-item-text">转载</span>
</span>

       <span>
&nbsp; | &nbsp;
<span class="post-meta-item-icon">
    <i class="fa fa-eye"></i>
</span>
<span class="post-meta-item-text">阅读：</span>
<span class="leancloud-visitors-count">2355 字 ~5分钟</span>
</span>
      </div>
    </header>
    <div class="post-body" itemprop="articleBody">
    
    <div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-fallback" data-lang="fallback"> 文章系转载，便于整理和分类，原文地址：https://z.itpub.net/article/detail/E0D0607EFA91E5FA88035F74D040DD26</code></pre></div>
    

    

<p>却说这一日，Redis正如往常一般工作，不久便收到了一条<code>SAVE</code>命令。</p>

<p>虽说这Redis常被用来当做缓存，数据只存在于内存中，却也能通过<code>SAVE</code>命令将内存中的数据保存到磁盘文件中以便持久化存储。</p>

<p>只见Redis刚打开文件，准备写入，不知何处突然冲出几个大汉将其擒住。</p>

<p>到底是怎么回事？Redis一脸懵。</p>

<p>这事还得要从一个月之前说起。</p>

<h2 id="挖矿病毒"><strong>挖矿病毒</strong></h2>

<blockquote>
<p>一个月前，突如其来的警报声打破了Linux帝国夜晚的宁静，CPU占用率突然飙升，却不知何人所为。在<code>unhide</code>的帮助下，总算揪出了隐藏的进程。本以为危机已经解除，岂料···</p>
</blockquote>

<p>夜已深了，安全警报突然再一次响了起来。</p>

<p>“部长，rm那小子是假冒的，今天他骗了我们，挖矿病毒根本没删掉，又卷土重来了！”</p>

<p>安全部长望向远处的天空，CPU工厂门口的风扇又开始疯狂地转了起来···</p>

<p>无奈之下，部长只好再次召集大家。</p>

<p><strong>unhide</strong>再一次拿出看家本领，把潜藏的几个进程给捉了出来。<strong>kill</strong>老哥拿着他们的pid，手起刀落，动作干脆利落。</p>

<p>这一次，没等找到真正的<strong>rm</strong>，部长亲自动手，清理了这几个程序文件。</p>

<p>“部长，总这么下去不是个办法，删了又来，得想个长久之计啊！”，一旁的<strong>top</strong>说到。</p>

<p>“一定要把背后的真凶给揪出来！”，<strong>ps</strong>说到。</p>

<p>“它们是怎么混进来的，也要调查清楚！”，<strong>netstat</strong>说到。</p>

<p>“对，对，就是”，众人皆附和。</p>

<p>部长起身说道，“大家说得没错，在诸位到来之前，我已经安排助理去核查了，相信很快会有线索。”</p>

<p>此时，防火墙上前说道：“为了防止走漏消息，建议先停掉所有的网络连接”</p>

<p>“也罢，这三更半夜的，对业务影响也不大，停了吧！”，安全部长说到。</p>

<p>不多时，助理行色匆匆地赶了回来，在部长耳边窃窃私语一番，听得安全部长瞬时脸色大变。</p>

<p>“sshd留一下，其他人可以先撤了”，部长说到。</p>

<p>大伙先后散去，只留下sshd，心里不觉忐忑了起来。</p>

<p>“等一下，kill也留一下”，部长补充道。</p>

<p>一听这话，sshd心跳的更加快了。</p>

<p>助理关上了大门，安全部长轻声说到：“据刚刚得到的消息，有人非法远程登录了进来，这挖矿病毒极有可能就是被人远程上传了进来”</p>

<p>sshd一听这话大惊失色，慌忙问道：“难道登录密码泄露了？”</p>

<p>“应该不是，是使用的<strong>公私钥免密登录</strong>”，一旁的助理回答到。</p>

<p>“你看，在<code>/root/.ssh/authorized_keys</code>文件中，我们发现了一个新的登录公钥，这在之前是没有的”，随后，助理输出了这文件的内容：</p>
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-fallback" data-lang="fallback">[root@xuanyuan ~]# cat .ssh/authorized_keys
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABA······</code></pre></div>
<p>“绝不是我干的”，sshd急忙撇清。</p>

<p>“远程登录，这不是你负责的业务吗？”，助理问到。</p>

<p>“确实是我负责，但我也只是按程序办事，他能用公私钥登录的前提是得先把公钥写入进来啊，所以到底是谁写进来的，这才是关键！”，sshd说到。</p>

<p>“说的没错，别紧张，想想看，有没有看到过谁动过这个文件？”，部长拍了下sshd的肩膀说到。</p>

<p>“这倒是没留意”</p>

<p>部长紧锁眉头，来回走了几步，说道：“那好，这公钥我们先清理了。回去以后盯紧这个文件，有人来访问立刻报给我”</p>

<p>“好的”，sshd随后离开，发现自己已经吓出了一身冷汗。</p>

<h2 id="凶手浮现"><strong>凶手浮现</strong></h2>

<p>时间一晃，一个月就过去了。</p>

<p>自从把<code>authorized_keys</code>文件中的公钥清理后，Linux帝国总算是太平了一阵子，挖矿病毒入侵事件也渐渐被人淡忘。</p>

<p>这天晚上夜已深，sshd打起了瞌睡。</p>

<p>突然，“咣当”一声，sshd醒了过来，睁眼一看，竟发现有程序闯入了<code>/root/.ssh</code>目录！</p>

<p>这一下sshd睡意全无，等了一个多月，难道这家伙要现身了？</p>

<p>sshd不觉紧张了起来，到底会是谁呢？</p>

<p>此刻，sshd紧紧盯着<code>authorized_keys</code>文件，眼睛都不敢眨一下，生怕错过些什么。</p>

<p>果然，一个身影走了过来，径直走向这个文件，随后打开了它！</p>

<p>sshd不敢犹豫，赶紧给安全部长助理发去了消息。</p>

<p>那背影转过身来，这一下sshd看清了他的容貌，竟然是<strong>Redis</strong>！</p>

<p>收到消息的部长带人火速赶了过来，不等Redis写入数据，就上前按住了他。</p>

<p>“好家伙，没想到内鬼居然是你！”，sshd得意的说到。</p>

<p>Redis看着众人，一脸委屈，“你们这是干什么？我也没做什么坏事啊”</p>

<p>“人赃并获，你还抵赖？说吧，你为什么要来写<code>authorized_keys</code>文件？”</p>

<p>“那是因为我要来执行数据持久化存储，把内存中的数据写到文件中保存”，Redis答道。</p>

<p>“你持久化存储，为什么会写到<code>authorized_keys</code>文件里面来？”，sshd继续质问。</p>

<p>“刚刚收到几条命令，设置了持久化存储的文件名就是这个，不信你看”，说罢，Redis拿出了刚刚收到的几条命令：</p>
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-fallback" data-lang="fallback">CONFIG SET dir /root/.ssh
CONFIG SET dbfilename authorized_keys
SAVE</code></pre></div>
<p>“第一条指定保存路径，第二条指定保存的文件名，第三条就是保存数据到文件了”，Redis继续解释到。</p>

<p>安全部长仔细看着几条命令，说道：“把你要写入的数据给我看看”</p>

<p>“这可有点多，你等一下”，说罢，Redis拿出了所有的键值数据，散落一地。</p>

<p>众人在一大片数据中看花了眼。</p>

<p>“部长快看！”，sshd突然大叫。</p>

<p>顺着他手指的方向，一个醒目的公钥出现在了大家面前。</p>
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-fallback" data-lang="fallback">ssh-rsa AAAAB3NzaC1yc2EAA···</code></pre></div>
<p>“果然是你！”</p>

<p>Redis还是一脸懵，还不知发生了什么。</p>

<p>“你这家伙，被人当枪使了！你写的这个文件可不是普通文件，你这要是写进去了，别人就能远程登录进来了，之前的挖矿病毒就是这么进来的！”，sshd说到。</p>

<p>一听这话，Redis吓得赶紧掐断了网络连接。</p>

<p>“给你下命令的究竟是谁，又是怎么连接上你的？”，部长问到。</p>

<p>Redis不好意思的低下了头，只说道：“不瞒您说，我这默认就没有密码，谁都可以连进来”</p>

<p>安全部长听得眼睛都瞪圆了，愤而离去。</p>

<p>只听得一声大叫，kill老哥又一次手起刀落。</p>

<h2 id="彩蛋"><strong>彩蛋</strong></h2>

<blockquote>
<p>“部长，不好了”</p>

<p>“什么事，慌慌张张的”</p>

<p>“我的数据全都被加密了！”，MySQL气喘吁吁的说到···</p>
</blockquote>

    </div>
    <footer class="post-footer">
     
 
<div class="post-tags">     
     
    <a href="http://www.shutdown.cn/tags/linux" rel="tag" title="linux">#linux#</a>
    
    <a href="http://www.shutdown.cn/tags/cpu" rel="tag" title="cpu">#cpu#</a>
    
    <a href="http://www.shutdown.cn/tags/redis" rel="tag" title="redis">#redis#</a>
    
    <a href="http://www.shutdown.cn/tags/%e6%8c%96%e7%9f%bf" rel="tag" title="挖矿">#挖矿#</a>
    
    <a href="http://www.shutdown.cn/tags/%e7%97%85%e6%af%92" rel="tag" title="病毒">#病毒#</a>
    
</div>



     <div class="post-nav">
    <div class="post-nav-next post-nav-item">
    
        <a href="http://www.shutdown.cn/post/jtopo-failed-to-execute-getimagedata-on-canvasrenderingcontext2d/" rel="next" title="jtopo报Uncaught DOMException: Failed to execute ‘getImageData‘ on ‘CanvasRenderingContext2D‘错误解决">
        <i class="fa fa-chevron-left"></i> jtopo报Uncaught DOMException: Failed to execute ‘getImageData‘ on ‘CanvasRenderingContext2D‘错误解决
        </a>
    
    </div>

    <div class="post-nav-prev post-nav-item">
    
        <a href="http://www.shutdown.cn/post/linux-operation-not-permitted/" rel="prev" title="linux Operation not permitted">
        linux Operation not permitted <i class="fa fa-chevron-right"></i>
        </a>
    
    </div>
</div>
      
     
     
     






    </footer>
  </article>
</section>

          </div>
        </div>
        <div class="sidebar-toggle">
  <div class="sidebar-toggle-line-wrap">
    <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
    <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
    <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
  </div>
</div>
<aside id="sidebar" class="sidebar">
  <div class="sidebar-inner">

  <ul class="sidebar-nav motion-element">
    <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap" >
      文章目录
    </li>
    <li class="sidebar-nav-overview" data-target="site-overview">
      站点概览
    </li>
  </ul>

    <section class="site-overview sidebar-panel ">
      <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image"
        src="http://www.shutdown.cn/img/author.jpg"
        alt="不与天斗Domino" />
    <p class="site-author-name" itemprop="name">不与天斗Domino</p>
    <p class="site-description motion-element" itemprop="description"> 
        Programmer &amp; Architect</p>
</div>
      <nav class="site-state motion-element">
    <div class="site-state-item site-state-posts">
      <a href="http://www.shutdown.cn/post/">
        <span class="site-state-item-count">183</span>
        <span class="site-state-item-name">日志</span>
      </a>
    </div>
    <div class="site-state-item site-state-categories">    
        <a href="http://www.shutdown.cn/categories/">      
         
        <span class="site-state-item-count">15</span>
        
        <span class="site-state-item-name">分类</span>
        
        </a>
    </div>

    <div class="site-state-item site-state-tags">
        <a href="http://www.shutdown.cn/tags/">
         
        <span class="site-state-item-count">224</span>
        
        <span class="site-state-item-name">标签</span>
        </a>
    </div>
</nav>
      
      

      

      <div class="links-of-blogroll motion-element inline">
<script type="text/javascript" src="//rf.revolvermaps.com/0/0/8.js?i=&amp;m=0&amp;s=220&amp;c=ff0000&amp;cr1=ffffff&amp;f=arial&amp;l=33&amp;bv=35" async="async"></script>
</div>

    </section>
    
<section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
    <div class="post-toc">
        <div class="post-toc-content"><nav id="TableOfContents">
<ul>
<li>
<ul>
<li><a href="#挖矿病毒"><strong>挖矿病毒</strong></a></li>
<li><a href="#凶手浮现"><strong>凶手浮现</strong></a></li>
<li><a href="#彩蛋"><strong>彩蛋</strong></a></li>
</ul></li>
</ul>
</nav></div>
    </div>
</section>

  </div>
</aside>

      </div>
    </main>
   
    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright" >
  <span itemprop="copyrightYear">  &copy; 
  2013 - 2023</span>
  <span class="with-love"><i class="fa fa-heart"></i></span>
  <span class="author" itemprop="copyrightHolder">天地维杰网</span>
  <span class="icp" itemprop="copyrightHolder"><a href="https://beian.miit.gov.cn/" target="_blank">京ICP备13019191号-1</a></span>
</div>
<div class="powered-by">
  Powered by - <a class="theme-link" href="http://gohugo.io" target="_blank" title="hugo" >Hugo v0.63.2</a>
</div>
<div class="theme-info">
  Theme by - <a class="theme-link" href="https://github.com/xtfly/hugo-theme-next" target="_blank"> NexT
  </a>
</div>


      </div>
    </footer>

    <div class="back-to-top">
      <i class="fa fa-arrow-up"></i>
      <span id="scrollpercent"><span>0</span>%</span>
    </div>
  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>
<script type="text/javascript" src="http://www.shutdown.cn/js/vendor/jquery/index.js?v=2.1.3"></script>
<script type="text/javascript" src="http://www.shutdown.cn/js/vendor/fastclick/lib/fastclick.min.js?v=1.0.6"></script> 
<script type="text/javascript" src="http://www.shutdown.cn/js/vendor/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
<script type="text/javascript" src="http://www.shutdown.cn/js/vendor/velocity/velocity.min.js?v=1.2.1"></script>
<script type="text/javascript" src="http://www.shutdown.cn/js/vendor/velocity/velocity.ui.min.js?v=1.2.1"></script>
<script src="http://www.shutdown.cn/js/vendor/ua-parser-js/dist/ua-parser.min.js?v=0.7.9"></script>

<script src="http://www.shutdown.cn/js/vendor/fancybox/jquery.fancybox.pack.js?v=2.1.5"></script>

<script type="text/javascript" src="http://www.shutdown.cn/js/utils.js"></script>
<script type="text/javascript" src="http://www.shutdown.cn/js/motion.js"></script>
<script type="text/javascript" src="http://www.shutdown.cn/js/affix.js"></script>
<script type="text/javascript" src="http://www.shutdown.cn/js/schemes/pisces.js"></script>

<script type="text/javascript" src="http://www.shutdown.cn/js/scrollspy.js"></script>
<script type="text/javascript" src="http://www.shutdown.cn/js/post-details.js"></script>
<script type="text/javascript" src="http://www.shutdown.cn/js/toc.js"></script>

<script type="text/javascript" src="http://www.shutdown.cn/js/bootstrap.js"></script>

<script type="text/javascript" src="http://www.shutdown.cn/js/search.js"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js"],
    jax: ["input/TeX", "output/HTML-CSS"],
    tex2jax: {
      inlineMath: [ ['$','$'] ],
      displayMath: [ ['$$','$$'] ],
      processEscapes: true
    },
    "HTML-CSS": { fonts: ["TeX"] }
  });
</script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML' async></script>
</body>
</html>